<%@ page language="java" contentType="text/html; charset=utf-8"pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>addphoto.jsp</title>
	</head>
<body>	
<%
    String errors=(String)request.getAttribute("errors");
    if(errors==null||errors.equals(""))
	  errors="<li>请选择要上传的文件!";
%>
			<form name="form1" method="post"
				action="upload_image_chuli.jsp" id="form1"
				enctype="multipart/form-data">
			<table width="75%" border="1" align="center">
			<thead>
				<tr  height="25"><th align="center" colspan="4"><%=errors%></th></tr>
			</thead>
			<tbody>
			<%	for(int i = 1;i < 6 ; i++ ){
			 %>
				<tr>
					<td>文件<%=i%>:
						<input type="file" name="file<%=i%>" size="30" /> 
					</td>
				</tr>
			<%}
			 %>
				<tr>
					<td>
						<input type="submit" name="Submit" value="上传" />
					</td>
				</tr>
			</tbody>
			</table>
			</form>	
</body>
</html> 
